package com.example.houpicture.controller;


import com.example.houpicture.service.ITbRoomInfoService;
import com.org.ddto.PageRoomStatusDto;
import com.org.vo.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 龚梦
 * @since 2021-04-07
 */
@RestController
@RequestMapping("/houset")
public class TbRoomInfoController {
    @Autowired
    private ITbRoomInfoService iTbRoomInfoService;

    //房源图
    @RequestMapping("/showRoom")
    public ResultEntity showRoom(PageRoomStatusDto pageRoomStatusDto) {
        System.err.println(pageRoomStatusDto);
        Map<String, Object> info = iTbRoomInfoService.roomStatusList(pageRoomStatusDto);
        return ResultEntity.ok("200", "列表查询成功1111", info);
    }

}
